local charname = "yunli"

-- The character select screen lines  --人物选人界面的描述
STRINGS.CHARACTER_TITLES[charname] = "云璃"
STRINGS.CHARACTER_NAMES[charname] = "云璃"
STRINGS.CHARACTER_DESCRIPTIONS[charname] = "*又肉\n*又有伤害\n*的可爱少女"
STRINGS.CHARACTER_QUOTES[charname] = "\"你我是云璃。来吧，拿上你的剑，我们交一次手，就算认识了。\""

-- Custom speech strings  ----人物语言文件  可以进去自定义
--STRINGS.CHARACTERS[string.upper(charname)] = require "speech_yunli"
STRINGS.CHARACTERS[string.upper(charname)] = require "speech_wilson"

-- The character's name as appears in-game  --人物在游戏里面的名字
STRINGS.NAMES[string.upper(charname)] = "YunLi"
STRINGS.SKIN_NAMES[charname .. "_none"] = "YunLi"  --检查界面显示的名字
STRINGS.CHARACTERS.GENERIC.DESCRIBE["YUNLI"] = {
    GENERIC = "你好",
    ATTACKER = "你好",
    MURDERER = "你好",
    REVIVER = "你好",
    GHOST = "你好",
}
--生存几率
STRINGS.CHARACTER_SURVIVABILITY[charname] = " 易如反掌"
TUNING.LINKAGE = {
    KEQING = false,
    HUOHUO = false,
    HEITA = false,
    WEISHUANG = false,
    SPARKLE = false, -- 花火
}

--选人界面人物三维显示
TUNING[string.upper(charname) .. "_HEALTH"] = 100
TUNING[string.upper(charname) .. "_HUNGER"] = 300
TUNING[string.upper(charname) .. "_SANITY"] = 300

--选人界面初始物品显示
TUNING.GAMEMODE_STARTING_ITEMS.DEFAULT[string.upper(charname)] = { "i26_laotie" }

TUNING.STARTING_ITEM_IMAGE_OVERRIDE["i26_laotie"] = {
    atlas = "images/iii/i26_laotie.xml",
    image = "i26_laotie_0.tex",
}

--TUNING.STARTING_ITEM_IMAGE_OVERRIDE["i26_flower_sack"] = {
--    atlas = "images/inventoryimages/i26_flower_sack.xml",
--    image = "i26_flower_sack.tex",
--}

TUNING.i26_SKILLR_HEAL = GetModConfigData("i26skillheal") or 0
TUNING.I26_FUSION_MODE = GetModConfigData("fusion_mode") or "standard"
-- 温度调节
TUNING.I26_TEMPERATURE_CONTROL = GetModConfigData("temperature_control") or "enabled"
-- 璇枢戒 开关
TUNING.I26_FLOWER_SACK_ENABLED = GetModConfigData("i26_flower_sack_enabled") or "enabled"
TUNING.I26_FLOWER_SACK_SIZE = GetModConfigData("i26_flower_sack_size") or 11
TUNING.LANGUAGE = GetModConfigData("language_yunli") or "cn"
TUNING.IS_RZ_LAOTIE = GetModConfigData("is_rz_laotie")
-- 建木发光范围
TUNING.JIANMU_CONFIG = {
    -- 4单位=1格地皮
    -- 建木发光范围
    GLOW_EFFECT_RADIUS = (GetModConfigData("jianmu_glow_effect_radius")) * 4,
    -- 能力有效范围
    EFFECTIVE_RADIUS = (GetModConfigData("jianmu_effective_radius")) * 4,
    -- 总开关
    ENABLED_JIANMU = GetModConfigData("enabled_jianmu"),
    I26_NUANLU_ENABLED = GetModConfigData("i26_nuanlu_enabled"),
    I26_FANGSHUI_ENABLED = GetModConfigData("i26_fangshui_enabled"),
    I26_HANBING_ENABLED = GetModConfigData("i26_hanbing_enabled"),
    I26_ZHIWU1_ENABLED = GetModConfigData("i26_zhiwu1_enabled"),
    I26_ZHIWU2_ENABLED = GetModConfigData("i26_zhiwu2_enabled"),
    I26_ZHIWU_INTERVAL_TIME = GetModConfigData("i26_zhiwu_interval_time") or 60,
    I26_FENGRAOXUANSHU_ENABLED = GetModConfigData("i26_fengraoxuanshu_enabled"),
    I26_LINKAGE_WEISHUANG_ENABLED = GetModConfigData("i26_linkage_weishuang_enabled"),
    I26_RESTORE_SAN_ENABLED = GetModConfigData("i26_restore_san_enabled"),
}

TUNING.I26RZW = {    -- 可熔铸的物品

    shovel = "铲子", goldenshovel = "黄金铲子",
    hammer = "锤子",
    multitool_axe_pickaxe = "多用斧镐",
    axe = "斧头", goldenaxe = "黄金斧头", moonglassaxe = "月光玻璃斧",
    pitchfork = "干草叉", goldenpitchfork = "黄金干草叉",
    pickaxe = "鹤嘴锄", goldenpickaxe = "黄金鹤嘴锄",
    farm_hoe = "园艺锄", golden_farm_hoe = "黄金园艺锄",

    hambat = "火腿棒", nightstick = "晨星锤", nightsword = "暗夜剑", batbat = "蝙蝠棒",
    spear = "长矛", trident = "刺耳三叉戟", --boomerang	= "回旋镖",
    whip = "三尾猫鞭", fence_rotator = "栅栏击剑",
    spear_wathgrithr = "战斗长矛", wathgrithr_shield = "战斗圆盾",

    ruins_bat = "铥矿棒",
    tentaclespike = "触手尖刺",
    shieldofterror = "恐怖盾牌",
    glasscutter = "玻璃刀",

    oar = "桨", oar_driftwood = "浮木桨", oar_monkey = "战桨", malbatross_beak = "邪天翁喙",
    shovel_lunarplant = "亮茄锄铲", pickaxe_lunarplant = "亮茄粉碎者", sword_lunarplant = "亮茄剑",
    voidcloth_scythe = "暗影收割者",

    cutless = "木头短剑",
    pocketwatch_weapon = "警钟",
    --slingshot	= "可靠的弹弓",
    spear_wathgrithr_lightning = "奔雷矛", spear_wathgrithr_lightning_charged = "充能奔雷矛",

    -- halberd = "戟",
    -- machete = "砍刀",
    -- goldenmachete = "黄金砍刀",
    -- obsidianmachete = "黑曜石砍刀",
    merm_tool = "劣质工具", merm_tool_upgraded = "不那么劣质的工具",
    lucy = "露西斧",
    lighter = "薇洛的打火机",
    --mosquitobomb = "蚊子炸弹",
    minifan = "旋转的风扇",
    dumbbell = "哑铃", dumbbell_golden = "黄金哑铃", dumbbell_marble = "大理石哑铃", dumbbell_gem = "宝石哑铃",
    dumbbell_heat = "热铃", dumbbell_redgem = "火铃", dumbbell_bluegem = "冰铃",

    --i26_laotie = "老铁",
    rabbitkingspear = "兔王棍",
    shadow_battleaxe = "暗影槌",

    opalstaff = "唤月者魔杖",
    firestaff = "火魔杖",
    icestaff = "冰魔杖",
    yellowstaff = "唤星者魔杖",
}

TUNING.i26key = {
    Skill1 = GetModConfigData('i26key1'), --_G.KEY_R,
    Skill2 = GetModConfigData('i26key2'), --_G.KEY_Z,

}
--------------
--------------
local moddir = KnownModIndex:GetModsToLoad(true)
local enablemods = {}

for k, dir in pairs(moddir) do
    local info = KnownModIndex:GetModInfo(dir)
    local name = info and info.name or "unknow"
    enablemods[dir] = name
end

local function IsModEnable(name)
    for k, v in pairs(enablemods) do
        if v and (k:match(name) or v:match(name)) then
            return true
        end
    end
    return false
end
-- 联动霍霍
if IsModEnable("3347362893") then
    TUNING.I26RZW.huohuo_flag = "令旗"
    TUNING.LINKAGE.HUOHUO = true
end
-- 联动刻晴
if IsModEnable("3199945184") then
    TUNING.LINKAGE.KEQING = true
end
-- 联动黑塔
if IsModEnable("3412862219") then
    TUNING.LINKAGE.HEITA = true
end

-- 为爽
if IsModEnable("2886753796") then
    TUNING.LINKAGE.WEISHUANG = true
end

-- 花火
if IsModEnable("3473318774") then
    TUNING.LINKAGE.SPARKLE = true
end


